package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租售合同管理对象 payment_contract
 * 
 * @author fcs
 * @date 2024-02-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PaymentContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 区域编码 */
    private String blockCode;

    /** 商铺编号 */
    @Excel(name = "商铺编号")
    private String resourceId;

    /** 商铺名 */
    private String resourceName;

    /** 资源类型 */
    private String resourceType;

    /** 业主id */
    private String ownerId;

    /** 合同类型 */
    @Excel(name = "合同类型")
    private String contractType;

    /** 开始使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginDate;

    /** 合约有效时间 */
    private String period;

    /** 结束使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    @TableField(exist = false)
    @Excel(name = "租金")
    private String money;

    /** 公司名 */
    @Excel(name = "公司名")
    private String company;

    /** 租户姓名/业主姓名 */
    @Excel(name = "租户姓名/业主姓名")
    private String userName;

    /** 租户身份证/业主身份证 */
    private String userIdcard;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String userPhone;

    /** 性别 */
    private String userGender;

    /** 从事的行业 */
    @Excel(name = "从事的行业")
    private String userTrade;

    /** 行业的详细描述 */
    private String userTradeDetail;

    /** 描述 */
    private String description;

    /** 有效标志 */
    private Long enabledMark;

    /** 创建用户 */
    private String creatorUserId;

    /** 创建时间 */
    private Date creatorTime;

    /** 修改用户 */
    private String lastModifyUserId;

    /** 修改时间 */
    private Date lastModifyTime;

    /** 删除用户 */
    private String deleteUserId;

    /** 删除时间 */
    private Date deleteTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setBlockCode(String blockCode) 
    {
        this.blockCode = blockCode;
    }

    public String getBlockCode() 
    {
        return blockCode;
    }
    public void setResourceId(String resourceId) 
    {
        this.resourceId = resourceId;
    }

    public String getResourceId() 
    {
        return resourceId;
    }
    public void setResourceName(String resourceName) 
    {
        this.resourceName = resourceName;
    }

    public String getResourceName() 
    {
        return resourceName;
    }
    public void setResourceType(String resourceType) 
    {
        this.resourceType = resourceType;
    }

    public String getResourceType() 
    {
        return resourceType;
    }
    public void setOwnerId(String ownerId) 
    {
        this.ownerId = ownerId;
    }

    public String getOwnerId() 
    {
        return ownerId;
    }
    public void setContractType(String contractType) 
    {
        this.contractType = contractType;
    }

    public String getContractType() 
    {
        return contractType;
    }
    public void setBeginDate(Date beginDate) 
    {
        this.beginDate = beginDate;
    }

    public Date getBeginDate() 
    {
        return beginDate;
    }
    public void setPeriod(String period) 
    {
        this.period = period;
    }

    public String getPeriod() 
    {
        return period;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setCompany(String company) 
    {
        this.company = company;
    }

    public String getCompany() 
    {
        return company;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserIdcard(String userIdcard) 
    {
        this.userIdcard = userIdcard;
    }

    public String getUserIdcard() 
    {
        return userIdcard;
    }
    public void setUserPhone(String userPhone) 
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone() 
    {
        return userPhone;
    }
    public void setUserGender(String userGender) 
    {
        this.userGender = userGender;
    }

    public String getUserGender() 
    {
        return userGender;
    }
    public void setUserTrade(String userTrade) 
    {
        this.userTrade = userTrade;
    }

    public String getUserTrade() 
    {
        return userTrade;
    }
    public void setUserTradeDetail(String userTradeDetail) 
    {
        this.userTradeDetail = userTradeDetail;
    }

    public String getUserTradeDetail() 
    {
        return userTradeDetail;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setEnabledMark(Long enabledMark) 
    {
        this.enabledMark = enabledMark;
    }

    public Long getEnabledMark() 
    {
        return enabledMark;
    }
    public void setCreatorUserId(String creatorUserId) 
    {
        this.creatorUserId = creatorUserId;
    }

    public String getCreatorUserId() 
    {
        return creatorUserId;
    }
    public void setCreatorTime(Date creatorTime) 
    {
        this.creatorTime = creatorTime;
    }

    public Date getCreatorTime() 
    {
        return creatorTime;
    }
    public void setLastModifyUserId(String lastModifyUserId) 
    {
        this.lastModifyUserId = lastModifyUserId;
    }

    public String getLastModifyUserId() 
    {
        return lastModifyUserId;
    }
    public void setLastModifyTime(Date lastModifyTime) 
    {
        this.lastModifyTime = lastModifyTime;
    }

    public Date getLastModifyTime() 
    {
        return lastModifyTime;
    }
    public void setDeleteUserId(String deleteUserId) 
    {
        this.deleteUserId = deleteUserId;
    }

    public String getDeleteUserId() 
    {
        return deleteUserId;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("blockCode", getBlockCode())
            .append("resourceId", getResourceId())
            .append("resourceName", getResourceName())
            .append("resourceType", getResourceType())
            .append("ownerId", getOwnerId())
            .append("contractType", getContractType())
            .append("beginDate", getBeginDate())
            .append("period", getPeriod())
            .append("endDate", getEndDate())
            .append("company", getCompany())
            .append("userName", getUserName())
            .append("userIdcard", getUserIdcard())
            .append("userPhone", getUserPhone())
            .append("userGender", getUserGender())
            .append("userTrade", getUserTrade())
            .append("userTradeDetail", getUserTradeDetail())
            .append("description", getDescription())
            .append("enabledMark", getEnabledMark())
            .append("creatorUserId", getCreatorUserId())
            .append("creatorTime", getCreatorTime())
            .append("lastModifyUserId", getLastModifyUserId())
            .append("lastModifyTime", getLastModifyTime())
            .append("deleteUserId", getDeleteUserId())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
